@model ICollection<Microsoft.AspNet.Identity.IUserLogin>

@if (Model.Count > 0)
{
    <h3>Registered Logins</h3>
    <table class="table">
        <tbody>
            @foreach (var account in Model)
            {
                <tr>
                    <td>@account.LoginProvider</td>
                    <td>
                        @if (ViewBag.ShowRemoveButton)
                        {
                            using (Html.BeginForm("Disassociate", "Account"))
                            {
                            @Html.AntiForgeryToken()
                            <fieldset>
                                @Html.Hidden("loginProvider", account.LoginProvider)
                                @Html.Hidden("providerKey", account.ProviderKey)
                                    <input type="submit" class="btn" value="Remove" title="Remove this @account.LoginProvider login from your account" />
                                
                            </fieldset>
                            }
                        }
                        else
                        {
                            @: &nbsp;
                    }
                    </td>
                </tr>
            }
        </tbody>
    </table>
}
